package com.suncreate.radarscan.model;

import java.util.Date;

public class TargetRadarData {
	private int number;//目标编号

    /*
     * 1:代表目标进入观测区域（TARGET_JOIN)
     * 2:代表目标离开观测区域（TARGET_LEAVE)
     * 3:代表更新当前目标信息（TARGET_UPDATE)
     */
	private int action;//目标动作
	private int totalCount;//当前目标总数
    
    /*
     * 目标类型
     * 0：代表行人（PERSON_TARGET)
     * 1：代表摩托车（MOTO_TARGET)
     * 2：代表小汽车(CAR_TARGET)
     * 3:代表大车（TRAFFIC_TARGET)
     * 4：未知类型（UNKNOW_TARGET)
     */
	private int targetType;//目标类型
	private double distance;//目标距离（m），雷达距离目标直线距离
	private double yDistance;//目标离雷达Y距离（m）,根据场景计算结果
	private double xDistance;//目标离雷达X距离(m)，根据场景计算结果
	private double speed;//目标速度（km/h）
	private double xSpeed;//目标速度（km/h）
	private double ySpeed;//目标速度（km/h）
	private double direction;//目标方位角（弧度），与雷达方向夹角
	private boolean isInPolygon;//是否在区域内
	private double x;//X坐标
	private double y;//Y坐标
	private Long time;//数据接收时间("format": "yyyy-MM-dd HH:mm:ss")
	private int roadNum;//目标所在车道
	private int readCount;
	
	public int getNumber() {
		return number;
	}
	public void setNumber(int number) {
		this.number = number;
	}
	public int getAction() {
		return action;
	}
	public void setAction(int action) {
		this.action = action;
	}
	public int getTotalCount() {
		return totalCount;
	}
	public void setTotalCount(int totalCount) {
		this.totalCount = totalCount;
	}
	public int getTargetType() {
		return targetType;
	}
	public void setTargetType(int targetType) {
		this.targetType = targetType;
	}
	public double getDistance() {
		return distance;
	}
	public void setDistance(double distance) {
		this.distance = distance;
	}
	public double getyDistance() {
		return yDistance;
	}
	public void setyDistance(double yDistance) {
		this.yDistance = yDistance;
	}
	public double getxDistance() {
		return xDistance;
	}
	public void setxDistance(double xDistance) {
		this.xDistance = xDistance;
	}
	public double getSpeed() {
		return speed;
	}
	public void setSpeed(double speed) {
		this.speed = speed;
	}
	public double getxSpeed() {
		return xSpeed;
	}
	public void setxSpeed(double xSpeed) {
		this.xSpeed = xSpeed;
	}
	public double getySpeed() {
		return ySpeed;
	}
	public void setySpeed(double ySpeed) {
		this.ySpeed = ySpeed;
	}
	public double getDirection() {
		return direction;
	}
	public void setDirection(double direction) {
		this.direction = direction;
	}
	public boolean isInPolygon() {
		return isInPolygon;
	}
	public void setInPolygon(boolean isInPolygon) {
		this.isInPolygon = isInPolygon;
	}
	public double getX() {
		return x;
	}
	public void setX(double x) {
		this.x = x;
	}
	public double getY() {
		return y;
	}
	public void setY(double y) {
		this.y = y;
	}
	
	public Long getTime() {
		return time;
	}
	public void setTime(Long time) {
		this.time = time;
	}
	public int getRoadNum() {
		return roadNum;
	}
	public void setRoadNum(int roadNum) {
		this.roadNum = roadNum;
	}
	public int getReadCount() {
		return readCount;
	}
	public void setReadCount(int readCount) {
		this.readCount = readCount;
	}
	
/*C#写法
  public class TargetObject
    {
        public string UUID = null;//目标唯一编号
        public int Number = 0;//目标编号
        public TargetAction Action = TargetAction.TARGET_JOIN;//目标动作
        public int TotalCount = 8;//当前目标总数
        public TargetType TargetType= TargetType.CAR_TARGET;//目标类型
        public double Distance = 50;//目标距离（m），雷达距离目标直线距离
        public double YDistance = 0;//目标离雷达Y距离（m）,根据场景计算结果
        public double XDistance = 0;//目标离雷达X距离(m)，根据场景计算结果
        public double Speed = 60;//目标速度（km/h）
        public double XSpeed = 0;//目标速度（km/h）
        public double YSpeed = 60;//目标速度（km/h）
        public double Direction = 0.0349065850398866d;//目标方位角（弧度），与雷达方向夹角
        public bool IsInPolygon = true;//是否在区域内
        public double X = 0;//X坐标
        public double Y = 0;//Y坐标
        public DateTime time;//time
        public TargetObject()
        {
            UUID = Guid.NewGuid().ToString("N");
        }

        //add 20161013
        public int RoadNum = 0;//目标所在车道
        public int ReadCount = 0;
    }
 */
}
